package com.zeus.service;

import com.zeus.mapper.CategoryMapper;
import com.zeus.pojo.Category;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 冯扬龙
 * @date 2021/4/17 16:00
 */
@Service
public class CategoryServiceImpl implements CategoryService{

    @Autowired
    private CategoryMapper categoryMapper;
    //点击登录按钮以后进到首页，自动加载里面的商品类别信息
    public List<Category> selectCategoryList() {
        return categoryMapper.selectCategoryList();
    }
}
